package com.compunit.composite.core;

import org.compunit.interfaces.IComponent;

/**
 * <code>CompUnit</code> defines the implementation of
 * a single component unit.
 *
 * @author Yi Wang (Neakor)
 * @version Creation date: 11-21-2009 19:06 EST
 * @version Modified date: 11-21-2009 19:08 EST
 */
public final class CompUnit {
	/**
	 * The <code>IComponent</code> instance.
	 */
	public final IComponent instance;
	/**
	 * The <code>String</code> resource name.
	 */
	public final String resourcename;
	
	/**
	 * Constructor of <code>CompUnit</code>.
	 * @param instance The <code>IComponent</code> instance.
	 * @param resourcename The <code>String</code> resource name.
	 */
	public CompUnit(final IComponent instance, final String resourcename) {
		this.instance = instance;
		this.resourcename = resourcename;
	}
}
